package com.gitee.cui.springcloud.service;

import com.gitee.cui.springcloud.entities.CommonResult;
import com.gitee.cui.springcloud.entities.Payment;
import org.springframework.stereotype.Component;

/**
 * TODO
 *
 * @author cuiqingqiang
 * @version 1.0
 * @date 2022-03-20 16:30
 **/
@Component
public class PaymentServiceFallback implements PaymentService{
	@Override
	public CommonResult<Payment> getPaymentById(Long id) {
		return new CommonResult<>(444, "服务降级返回，PaymentServiceFallback", new Payment(id, "errorSerialNo"));
	}
}
